global N;
global ERROR_TOL;
global EPOCHS;

constants;

patterns = generatePatterns(N);             % Genero los patrones
solutions = generateSolutions(patterns);    % Genero el vector de salidas deseadas
vectorWeights = generateWeights();                % Genero las matrices con los pesos peque??os aleatorios

wf = trainNeuralNetwork (patterns, vectorWeights, solutions, ERROR_TOL, EPOCHS);

for i = 1:length(solutions(1,:))
    disp('Pattern: ');
    disp(patterns(:,i)');
    output = valPattern(wf, patterns(:,i));
    disp('Output: ');
    disp(output);
end


